package com.example.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;

@ApiModel("赛事与前端交互实体类")
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
public class OrderVO implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("订单ID")
    private List<Integer> ticketIDs;
    @ApiModelProperty("用户ID")
    private Integer userID;
    @ApiModelProperty("赛事信息")
    private EventVO eventInfo;
    @ApiModelProperty("订单编号")
    private String orderNum;
    @ApiModelProperty("用户名")
    private String username;
    @ApiModelProperty("座位信息")
    private List<String> seatInfo;
    @ApiModelProperty("票数")
    private int ticketCount;
    @ApiModelProperty("总价")
    private String ticketPrice;
    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    private LocalDateTime creatTime;
    @ApiModelProperty("状态")
    private String status;
}
